<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %> 
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>融资筛选列表</title>
<style type="text/css">
    .searchArea .fieldBox .label{width: 80px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
    .layout2col1 .fieldBox .label{width: 80px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
       
</style>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
	<div class="searchArea">
		<form id="assPackInfoReplace_form">
         <div class="fieldset1 clearFix">
          	<div class="fieldBox">
                <div class="label">融资基数</div>
                <div class="field">
                <input name="fncCrdnltNm3" id="fncCrdnltNm" type="text" class="ui-textbox" value="${assPackInfo.fncCrdnltNm}" disabled="disabled" ligerui="width: 182">
                <input name="fncCrdnlt" id="fncCrdnlt" type="hidden" class="ui-textbox" data-name="fncCrdnlt" value="${assPackInfo.fncCrdnlt}" ligerui="width: 182">
                <input name="stdt" id="stdt" type="hidden" class="ui-textbox" data-name="stdt" value="${assPackInfo.planStdt}" ligerui="width: 182">
                <input name="eddt" id="eddt" type="hidden" class="ui-textbox" data-name="eddt" value="${assPackInfo.planEddt}" ligerui="width: 182">
                <input name="fncInsIdQ" id="fncInsIdQ" type="hidden" class="ui-textbox" data-name="fncInsIdQ" value="${assPackInfo.id}" ligerui="width: 182">
                <input name="repSt" id="repSt" type="hidden" class="ui-textbox" data-name="repSt" value="${assPackInfo.repSt}" ligerui="width: 182">
                </div>
            </div> 
            <div class="fieldBox">
                <div class="label">计划融资日期</div>
                <div class="field">
                <input name="stdt3" id="stdt3" type="text" class="ui-textbox" value="${assPackInfo.planStdt}" ligerui="width: 80" disabled="disabled">
                <span>—</span>
				<input name="eddt3" id="eddt3" type="text" class="ui-textbox" value="${assPackInfo.planEddt}" ligerui="width: 80" disabled="disabled">
                </div>
            </div>
			<div class="fieldBox">
                <div class="label">客户类型</div>
                <div class="field">
                <input name="cstTypCd3" id="cstTypCd3" type="text" class="ui-textbox" value="${assPackInfo.cstTypCdNm}" ligerui="width: 182" disabled="disabled">
                </div>
            </div>        
			<div class="fieldBox">
                <div class="label">所属事业部</div>
                <div class="field">
                <input name="buOrgCd3" id="buOrgCd3" type="text" class="ui-textbox" value="${assPackInfo.buOrgCdNm}" ligerui="width: 182" disabled="disabled">
                </div>
            </div>        
			<div class="fieldBox">
                <div class="label">是否办理抵押</div>
                <div class="field">
                <input name="isMortgage3" id="isMortgage3" type="text" class="ui-textbox" value="${assPackInfo.isMgtNm}" ligerui="width: 182" disabled="disabled">
                </div>
            </div>        
			<div class="fieldBox">
                <div class="label">是否有保险</div>
                <div class="field">
                <input name="isInsurance3" id="isInsurance3" type="text" class="ui-textbox" value="${assPackInfo.isInsureNm}" ligerui="width: 182" disabled="disabled">
                </div>
            </div>        
            <div class="fieldBox">
                <div class="label">租赁期数</div>
                <div class="field">
                   <input name="leaseTermMinQ3" id="leaseTermMinQ3" type="text" class="ui-textbox" value="${assPackInfo.leaTermB}" ligerui="width: 80" disabled="disabled">
                   <span>—</span>
                   <input name="leaseTermMaxQ3" id="leaseTermMaxQ3" type="text" class="ui-textbox" value="${assPackInfo.leaTermE}" ligerui="width: 80" disabled="disabled">
                </div>
            </div>
            <div class="fieldBox">
                <div class="label">剩余租赁期数</div>
                <div class="field">
                   <input name="surplusLeaseTermMinQ3" id="surplusLeaseTermMinQ3" type="text" class="ui-textbox" value="${assPackInfo.reLeaTermB}" ligerui="width: 80" disabled="disabled">
                   <span>—</span>
                   <input name="surplusLeaseTermMaxQ3" id="surplusLeaseTermMaxQ3" type="text" data-name="surplusLeaseTermMaxQ" class="ui-textbox" value="${assPackInfo.reLeaTermE}" ligerui="width: 80" disabled="disabled">
                </div>
            </div>
            <div class="fieldBox">
                <div class="label">起租日期</div>
                <div class="field">
                   <input name="stDtQ3" id="stDtQ3" type="text" class="ui-textbox" value="${assPackInfo.flDateBegin}" ligerui="width: 80" disabled="disabled">
                   <span>—</span>
                   <input name="edDtQ3" id="edDtQ3" type="text" class="ui-textbox" value="${assPackInfo.flDateEnd}" ligerui="width: 80" disabled="disabled">
                </div>
            </div>
            <div class="fieldBox">
                <div class="label">逾期天数</div>
                <div class="field">
                   <input name="ovdDaysMin3" id="ovdDaysMin3" type="text" class="ui-textbox" value="${assPackInfo.odDateB}" ligerui="width: 80" disabled="disabled">
                   <span>—</span>
                   <input name="ovdDaysMax3" id="ovdDaysMax3" type="text" class="ui-textbox" value="${assPackInfo.odDateE}" ligerui="width: 80" disabled="disabled"> 
                </div>
             </div>
         </div>
    	</form>
    </div>
   	<span>资产替换记录</span>
    <div id="ligergridRecord" class="sq-grid"></div>
</div>



<script type="text/javascript">
	var fncInsIdQ = $("#fncInsIdQ").val();
	$(function () {
		$("#assPackInfoReplace_form").ligerForm({validate: true});
        //资产替换记录
       	var _url3 = '<%=path%>/ass/asspackinfo/recordReplaceAssPackInfoInitList.do';
       	$("#ligergridRecord").ligerGrid({
       		url : _url3,
       		method : 'get',
       		parms : {"fncInsIdQ":fncInsIdQ},
           	columns: [
   	            { display: '替换状态', name: 'repTypeNm', width: 90},
   	            { display: '操作时间', name: 'operationDate', width: 90, render:renderDate},
   	            { display: '原还款表', name: 'oldPayId', width: 260 },
   	            { display: '融资金额', name: 'financingAmount', width: 140 },
   	            { display: '替换还款表', name: 'replacePayId', width: 260 },
   	            { display: '替换融资金额', name: 'replaceFinancingAmount', width: 90},
   	            { display: '操作人', name: 'crtPsnEcd', width: 100 }
   	        ],
   	     	pageSize:10, 
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        height:'100%',
	        heightDiff:-2
       	});
		
	});
	
	<%-- function update(){
		 Add_navTab('replaceAssPackInfo_2','修改','<%=path%>/ass/asspackinfo/replaceAssPackInfo.do?id=='+fncInsIdQ);
	 } --%>
	
	function iframeResize () {
	    if (parent.mainApp) {
	        parent.mainApp.parentTab.onResize();
	    };
	}
	//格式化时间
	function renderDate(rowdata, index, value){
		var dateStr = "";
		if(null != value){
			var date = new Date(value);
			dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		}
		return dateStr;
	}
	
	
</script>
</body>
</html>